package view;

import java.awt.Color;
import java.awt.Dimension;
import java.awt.FlowLayout;

import javax.swing.JLabel;
import javax.swing.JPanel;

public class PawnButtonPanel extends JPanel{
	    public PawnButton pawnButton;
	    private String img;
		public PawnButtonPanel(String img){
			this.img = img;
			this.setPreferredSize(new Dimension(100,150));
			this.setLayout(new FlowLayout());
			this.setBackground(Color.white);
			JLabel pawnLeftLabel = new JLabel("Reste 4 pions.");
			pawnButton = new PawnButton(img);
			this.add(pawnButton);
			this.add(pawnLeftLabel);
		}
	}

